#find_package(ZLIB REQUIRED)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
add_definitions(-DRExt__HIGH_BIT_DEPTH_SUPPORT)
file(GLOB fnt_libpy_SRCS
	"fnt_libpy.cc" 
	"${HEVC_INCLUDE_DIRS}/libmd5/*" 
	"${HEVC_INCLUDE_DIRS}/TAppCommon/*" 
	"${HEVC_INCLUDE_DIRS}/TLibCommon/*" 
	"${HEVC_INCLUDE_DIRS}/TLibDecoder/*" 
	"${HEVC_INCLUDE_DIRS}/TLibEncoder/*"
	"${HEVC_INCLUDE_DIRS}/TLibVideoIO/*"
	)	
	
	

add_library(fnt_libpy SHARED ${fnt_libpy_SRCS})
add_dependencies(fnt_libpy fntshared)
target_link_libraries(fnt_libpy fntshared)
target_include_directories(fnt_libpy PUBLIC 
			${PROJECT_SOURCE_DIR}/shared/)
if(WITH_VP9)
	if(USE_PRIV_WEBM)
		add_dependencies(fnt_libpy priv-webm)
	endif()
	if(USE_PRIV_VPX)
		add_dependencies(fnt_libpy priv-vpx)
	endif()
	target_link_libraries(fnt_libpy ${WEBM_LIBRARIES})
	target_link_libraries(fnt_libpy ${VPX_LIBRARIES})
	target_include_directories(fnt_libpy SYSTEM BEFORE PUBLIC
		${WEBM_INCLUDE_DIRS} ${VPX_INCLUDE_DIRS})
endif()

